(global-font-lock-mode t)
(setq font-lock-maximum-size 5000000)
(setq inhibit-compacting-font-caches t)

;; disable tool bar
(tool-bar-mode -1)

;; disable scroll bar
(scroll-bar-mode -1)

;; show line number
(global-linum-mode 1)

;; change cursor type
(setq cursor-type 'bar)

(setq inhbit-splash-screen 1)

;; change font size 16pt
(set-face-attribute 'default nil :height 140)

(defun open-init-file()
  (interactive)
  (find-file "~/.emacs.d/init.el"))

(global-set-key (kbd "<f2>") 'open-init-file)

(setq make-backup-files nil)

(require 'recentf)
(recentf-mode 1)
(setq recentf-max-menu-item 10)

(delete-selection-mode 1)

;; Find Executable Path on OS X
(when (memq window-system '(mac ns))
  (exec-path-from-shell-initialize))

(provide 'init-basic)
